package com.ny.kind;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {
        String data="今天是周五";
        FileOutputStream fileOutputStream=new FileOutputStream ("1.txt");
        byte[] bytes=data.getBytes();
        fileOutputStream.write(bytes);
    }
}
